from selenium import webdriver
from selenium.webdriver.common.by import By
import time
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Edge()
driver.get('https://www.baidu.com/')
driver.find_element(By.CLASS_NAME,'soutu-btn').click()
time.sleep(2)
driver.find_element(By.CLASS_NAME,'upload-pic').send_keys(r"C:\Users\24108\Desktop\屏幕截图 2025-06-23 143859.png")
time.sleep(2)
driver.quit()
driver.find_element(By.ID,'wk')
